import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import { components } from "@/plugins/element";
import { vLoading } from "element-plus/es/components/loading/src/directive";
import "element-plus/dist/index.css";
import "font-awesome/css/font-awesome.css";
import "animate.css";
import "normalize.css";
import "./global/global.less";

const app = createApp(App);
app.directive("loading", vLoading);
// 按需导入Element Plus组件和插件
components.forEach((component) => {
  app.component(component.name, component);
});
app.use(store).use(router).mount("#app");
